﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TestAngular.Migrations
{
    public partial class ArchiveChildAggregateRoot_AddSourceCreatedOn : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesSaleOrderLine",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesReceivementLine",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseRequisitionLine",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseOrderLine",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesProductionOrderPreparation",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesPlanOrderPreparation",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesIntentOrderLine",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesBomComponent",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesAuxiliaryUnit",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "SourceCreatedOn",
                table: "BasicArchivesAsnLine",
                type: "datetime2",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesSaleOrderLine");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesReceivementLine");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseRequisitionLine");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesPurchaseOrderLine");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesProductionOrderPreparation");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesPlanOrderPreparation");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesIntentOrderLine");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesBomComponent");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesAuxiliaryUnit");

            migrationBuilder.DropColumn(
                name: "SourceCreatedOn",
                table: "BasicArchivesAsnLine");
        }
    }
}
